<!-- Begin of titlebar/breadcrumbs -->
<div id="title-bar">
	<ul id="breadcrumbs">
		<li><a href="index.php" title="Home"><span id="bc-home"></span></a></li>
		<li class="no-hover"><a href="index.php?module=fb_pages">Page Manager</a></li>
	</ul>
</div> <!--! end of #title-bar -->

<div class="shadow-bottom shadow-titlebar"></div>
<!-- Begin of #main-content -->
<div id="main-content">
	<div class="container_12">

		<div class="grid_12">
			<h1>Page Manager</h1>
			<p>You can add and set pages.</p>
			
		</div>

		<?php
			if($showPage == false)
			{
			?>
			<div class="alert error"><strong>Error!</strong> you cant login this page!.</div>
			<?php
			}
			else
			{
			?>
			<div class="grid_12">
				<div class="block-border">
					<div class="block-header">
						<h1>Page Manager</h1><span></span>
					</div>
					<div class="block-content">
						<table id="table-example" class="table">
							<thead>
								<tr>
									<th>Page ID</th>
									<th>Page Name</th>
									<th>Fan Count</th>
									<th>Type</th>
									<th>Company Overview</th>
									<th>Manager</th>
								</tr>
							</thead>
							<tbody>
								<?php
									foreach($pageListArray as $page)
									{
									?>
									<tr class="gradeX">
										<td><?php echo $page['page_id']; ?></td>
										<td class="center"><?php echo $page['name']; ?></td>
										<td class="center"><?php echo $page['fan_count']; ?></td>
										<td class="center"><?php echo $page['type']; ?></td>
										<td class="center"><?php echo $page['company_overview']; ?></td>
										<td class="center">
											<a href="index.php?module=fb_page_manager&page_id=<?php echo $page['page_id']; ?>">Page Manager</a><br />
											<a href="index.php?module=fb_page_manager&page_id=<?php echo $page['page_id']; ?>">Add User</a>
										</td>
									</tr>
									<?php
									}
								?>
							</tbody>
						</table>
					</div>
				</div>
			</div>

			<div class="clear height-fix"></div>
			<?php } ?>	
	</div></div> 
		<!--! end of #main-content -->
<script type="text/javascript">
	$().ready(function() {
		
		
		/*
		 * DataTables
		 */
		$('#table-example').dataTable();
		
	});
</script>